package model

type User struct {
	Base
	Id       uint64 `json:"id" gorm:"column:id;primary_key;AUTO_INCREMENT"`
	Username string `json:"username" gorm:"column:username"`
	Password string `json:"password" gorm:"column:password"`
	RealName string `json:"real_name" gorm:"column:real_name"`
	Phone    string `json:"phone" gorm:"column:phone"`
	Mail     string `json:"mail" gorm:"column:mail"`
}

func (user *User) TableName() string {
	return "t_user"
}
